home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
009a
/
snpd0493.zip
/
PRTOGGLE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-05
|
505b
|
22 lines
.I 22 16
#include <conio.h>
#include <io.h>
#if !defined(__ZTC__) && !defined(__TURBOC__)
#define MK_FP(seg,offset) \
((void far *)(((unsigned long)(seg)<<16) | (unsigned)(offset)))
#define peek(s,o) (*((unsigned far *)(MK_FP(s,o))))
#define poke(s,o,w) (*((unsigned far *)(MK_FP(s,o)))=(w))
#endif
#define SUCCESS 0
#define ERROR -1
static unsigned head, tail, start, end;
static int idx = 0;
static unsigned keystack[16][2];
.D 23 1
.I 66 1
int prtoggle(void)
.D 67 1